import 'package:flutter/material.dart';
import 'package:flutter_app/tabs/connectPage/connect.dart';

class catalogue extends StatefulWidget {
  catalogue({Key key}) : super(key: key);

  @override
  _catalogueState createState() => _catalogueState();
}

class _catalogueState extends State<catalogue> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: <Widget>[
          Expanded(
            flex: 1,
            child: Container(),
          ),
          Expanded(
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceEvenly,
              children: <Widget>[
                Column(
                  children: <Widget>[
                    Expanded(
                      flex: 4,
                      child: FlatButton(
                        padding: EdgeInsets.all(5),
                        child: Image.asset(
                          'images/homePageImages/ylc.jpg',
                          fit: BoxFit.fill,
                        ),
                        onPressed: () {},
                      ),
                    ),
                    Expanded(
                      flex: 1,
                      child: Text(
                        '游乐场',
                        style: TextStyle(fontSize: 10),
                      ),
                    )
                  ],
                ),
                Column(
                  children: <Widget>[
                    Expanded(
                      flex: 4,
                      child: FlatButton(
                        padding: EdgeInsets.all(5),
                        child: Image.asset(
                          'images/homePageImages/msxc.jpg',
                          fit: BoxFit.fill,
                        ),
                        onPressed: () {},
                      ),
                    ),
                    Expanded(
                      flex: 1,
                      child: Text(
                        '美食小吃',
                        style: TextStyle(fontSize: 10),
                      ),
                    )
                  ],
                ),
                Column(
                  children: <Widget>[
                    Expanded(
                      flex: 4,
                      child: FlatButton(
                        padding: EdgeInsets.all(5),
                        child: Image.asset(
                          'images/homePageImages/zl.jpg',
                          fit: BoxFit.fill,
                        ),
                        onPressed: () {},
                      ),
                    ),
                    Expanded(
                      flex: 1,
                      child: Text(
                        '展览',
                        style: TextStyle(fontSize: 10),
                      ),
                    )
                  ],
                ),
                Column(
                  children: <Widget>[
                    Expanded(
                      flex: 4,
                      child: FlatButton(
                        padding: EdgeInsets.all(5),
                        child: Image.asset(
                          'images/homePageImages/ycpp.jpg',
                          fit: BoxFit.fill,
                        ),
                        onPressed: () {},
                      ),
                    ),
                    Expanded(
                      flex: 1,
                      child: Text(
                        '原创品牌',
                        style: TextStyle(fontSize: 10),
                      ),
                    )
                  ],
                ),
              ],
            ),
            flex: 6,
          ),
          Expanded(
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceEvenly,
              children: <Widget>[
                Column(
                  children: <Widget>[
                    Expanded(
                      flex: 4,
                      child: FlatButton(
                        padding: EdgeInsets.all(5),
                        child: Image.asset(
                          'images/homePageImages/gyjd.jpg',
                          fit: BoxFit.fill,
                        ),
                        onPressed: () {},
                      ),
                    ),
                    Expanded(
                      flex: 1,
                      child: Text(
                        '公园街道',
                        style: TextStyle(fontSize: 10),
                      ),
                    )
                  ],
                ),
                Column(
                  children: <Widget>[
                    Expanded(
                      flex: 4,
                      child: FlatButton(
                        padding: EdgeInsets.all(5),
                        child: Image.asset(
                          'images/homePageImages/shfm.jpg',
                          fit: BoxFit.fill,
                        ),
                        onPressed: () {},
                      ),
                    ),
                    Expanded(
                      flex: 1,
                      child: Text(
                        '生活风貌',
                        style: TextStyle(fontSize: 10),
                      ),
                    )
                  ],
                ),
                Column(
                  children: <Widget>[
                    Expanded(
                      flex: 4,
                      child: FlatButton(
                        padding: EdgeInsets.all(5),
                        child: Image.asset(
                          'images/homePageImages/gz.jpg',
                          fit: BoxFit.fill,
                        ),
                        onPressed: () {},
                      ),
                    ),
                    Expanded(
                      flex: 1,
                      child: Text(
                        '古着',
                        style: TextStyle(fontSize: 10),
                      ),
                    )
                  ],
                ),
                Column(
                  children: <Widget>[
                    Expanded(
                      flex: 4,
                      child: FlatButton(
                        padding: EdgeInsets.all(5),
                        child: Image.asset(
                          'images/homePageImages/jpwc.jpg',
                          fit: BoxFit.fill,
                        ),
                        onPressed: () {},
                      ),
                    ),
                    Expanded(
                      flex: 1,
                      child: Text(
                        '精品文创',
                        style: TextStyle(fontSize: 10),
                      ),
                    )
                  ],
                ),
              ],
            ),
            flex: 6,
          )
        ],
      ),
    );
  }
}
